package com.ColonyCount.Image;

public class Histogram {
	public int[] values;
	public int maxValue;
	public Histogram(int size)
	{
		values = new int[size];
	}
	
	public Histogram(int[] values)
	{
		this.values = values;
		findMaxValue();
	}
	
	public void findMaxValue()
	{
		maxValue = 0;
		int histrogramSize = values.length;
		for (int i = 0; i < histrogramSize; i++) 
		{
			int count = values[i];
			if(count > maxValue)
			{
				maxValue = count;
			}
		}
	}
}
